<html>
<head><meta charset="utf-8"><title>rustc unit tests · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20unit.20tests.html">rustc unit tests</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="167509631"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20unit%20tests/near/167509631" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20unit.20tests.html#167509631">(Jun 06 2019 at 18:42)</a>:</h4>
<p>how do I run the inline unit tests in librustc_data_structures?</p>



<a name="167510141"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20unit%20tests/near/167510141" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20unit.20tests.html#167510141">(Jun 06 2019 at 18:47)</a>:</h4>
<p>I had to add <code>#![feature(rustc_private)]</code> to the source, but that works for now with <code>cargo test</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>